package cc.booku.owlbox.VideoPlayer;

/**
 * Created by yangwenlong on 2020/6/4.
 */

public class PlayManage_C {


    public String set_url_player(String full_url) {

        String Rfull_url = null;

        if (full_url.contains("#") && full_url.contains("$")) {
            String full_url1[] = full_url.split("#");

            if (full_url1[0].contains("$")) {
                //System.out.println("set_url_player存在");
                int one = full_url.lastIndexOf("$");
                Rfull_url = full_url.substring((one + 1), full_url.length());
                //String full_url2[] =  full_url1[0].split("$");

            } else {
                System.out.println("set_url_player不存在");
                Rfull_url = full_url;
            }
            //return Rfull_url;
        }
        if (full_url.contains("$")) {
            if (full_url.contains("$")) {
                //System.out.println("set_url_player存在");
                int one = full_url.lastIndexOf("$");
                Rfull_url = full_url.substring((one + 1), full_url.length());
//                String full_url2[] = full_url.split("$");
//                System.out.println(full_url2[1]);
            } else {
                System.out.println("set_url_player不存在");
                Rfull_url = full_url;
            }

        }
        if (!full_url.contains("#") && !full_url.contains("$")) {
            System.out.println("已经下载的数据，或者解析的数据");
            Rfull_url = full_url;
        }


        return Rfull_url;


    }
}
